<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title>管理</title>
	<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" href="css/bootstrap.min.css" />
	<link rel="shortcut icon" th:href="@{/img/favicon.ico}">
	<script type="text/javascript" th:src="@{/js/jquery-1.11.3.min.js}" src="js/jquery1.12.4.min.js"></script>
	<script type="text/javascript" th:src="@{/js/bootstrap.min.js}" src="js/bootstrap.min.js"></script>
	</head>
<body>
<div class="container">
	<div class="panel panel-default">
		<div class="panel-heading">
			<h3 class="panel-title">用户修改</h3>
		</div>
		<div class="panel-body">
			<form th:object="${user}" class="form-horizontal" th:action="@{/admin/user/update}" method="post" action="">
				<!--隐藏域-->
				<input type="hidden" th:name="uid" th:value="*{uid}">
				<div class="form-group">
					<label  class="col-sm-2 control-label">用户名称</label>
					<div class="col-sm-10">
						<input type="text" th:value="*{username}" class="form-control" name="username"   placeholder="请输入用户名称" required >
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">密码</label>
					<div class="col-sm-10">
						<input type="text" th:value="*{password}" class="form-control" name="password" placeholder="请输入密码" required >
					</div>
				</div>
				<div class="form-group">
					<label  class="col-sm-2 control-label">真实姓名</label>
					<div class="col-sm-10">
						<input type="text" th:value="*{name}" class="form-control" name="name" placeholder="请输入真实姓名" required >
					</div>
				</div>
				<div class="form-group">
					<label  class="col-sm-2 control-label">邮箱</label>
					<div class="col-sm-10">
						<input type="text" th:value="*{email}"  class="form-control" name="email" placeholder="请输入邮箱" required>
					</div>
				</div>
				<div class="form-group">
					<label  class="col-sm-2 control-label">电话号码</label>
					<div class="col-sm-10">
						<input type="text" th:value="*{telephone}" class="form-control" name="telephone" placeholder="请输入电话号码" required>
					</div>
				</div>

				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						<button type="submit" class="btn btn-success">修改</button>
						<a href="" class="btn btn-default">返回</a>
					</div>
				</div>
			</form>

		</div>
	</div>
</div>
</body>

</html>